package com.easysoft.framework.role.mapper;

import com.easysoft.framework.beans.Page;
import com.easysoft.framework.menu.model.SysMenuQuery;
import com.easysoft.framework.role.model.SysRoleQuery;
import com.easysoft.framework.role.model.SysRoleView;
import com.easysoft.framework.stereotype.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisRepository("mapper.SysRoleMapperExtd")
public interface SysRoleMapperExtd extends SysRoleMapper {
    List<SysRoleView> selectSysRoleByUserId(String id);

    public int selectCountAllSysRole(@Param("query") SysRoleQuery query);

    List<SysRoleView>  selectSysRoleListByPage(@Param("page") Page page, @Param("query") SysRoleQuery query);


    List<SysRoleView>   selectSysRoleByDisable( int disable);


    List<SysRoleView> selectSysRoleList(@Param("query") SysRoleQuery query);

}
